package com.furnitur.core.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("order_items")
public class OrderItem {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    private Long orderId;
    private Long furnitureId;
    private Integer quantity;
    private BigDecimal price;
    private Date createdAt;
    private Date updatedAt;
    private String furnitureName;
    
    @TableField("furniture_image")
    private String imageUrl;
    
    private BigDecimal subtotal;
} 